<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>模板引擎</title>
    <script type="text/javascript" src="/js1/vue.js"> </script>
</head>
<body>
<!--<div id="app">-->
<!--    <p>{{hello}}</p>-->
<!--</div>-->


<h1  th:text="${message}">模板引擎</h1>
<h2  >当前时间<span th:text="${currentTime}"></span></h2>
<div id="app" th:if="${ not #strings.isEmpty(message) }">
    <p th:text="'传过来的多大'+${#strings.length(message)}"></p>
<input type="button" value="点击"  v-on:click="show">
    <input type="button" value="点击"  v-on:dblclick="show">
</div>
<script>
    var app = new Vue({
        el: '#app',
        data: {

            message: 'Hello World!',


        },
        methods: {
            show: function () {
                alert("今天是周一");
            }
        }
        }
    );
    </script>
</body>
</html>